package com.mc.service.impl;
import com.mc.bean.MatchType;
import com.mc.dao.Impl.MatchTypeDaoImpl;
import com.mc.dao.MatchTypeDao;
import com.mc.service.MatchTypeService;

import java.util.List;

/**
 * @Description 赛事类型数据业务逻辑实现类
 * @author fyp
 */
public class MatchTypeServiceImpl implements MatchTypeService {
    MatchTypeDao matchTypeDao=new MatchTypeDaoImpl();
    @Override
    public List<MatchType> findAll() {
        return matchTypeDao.findAll();
    }

    @Override
    public MatchType findByMTid(int mtid) {
        return matchTypeDao.findByMTid(mtid);
    }

    @Override
    public boolean add(MatchType matchType) {
        return matchTypeDao.add(matchType)>0?true:false;
    }

    @Override
    public boolean delete(int mtid) {
        return matchTypeDao.delete(mtid)>0?true:false;
    }

    @Override
    public boolean update(MatchType matchType) {
        return matchTypeDao.update(matchType)>0?true:false;
    }
}
